.class public Lcom/xingbook/ecloud/a/a;
.super Landroid/widget/BaseAdapter;

# interfaces
.implements Lcom/xingbook/service/download/m;


# instance fields
.field private a:Landroid/content/Context;

.field private b:F

.field private c:Ljava/util/ArrayList;

.field private d:Z

.field private e:Lcom/xingbook/ecloud/e/s;

.field private f:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/xingbook/ecloud/e/s;F)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/ecloud/a/a;->d:Z

    iput-object p1, p0, Lcom/xingbook/ecloud/a/a;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/xingbook/ecloud/a/a;->e:Lcom/xingbook/ecloud/e/s;

    iput p3, p0, Lcom/xingbook/ecloud/a/a;->b:F

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ecloud/a/a;->c:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ecloud/a/a;->f:Ljava/util/ArrayList;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;I)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ecloud/a/a;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ecloud/e/a;

    invoke-virtual {v0, p1, p2}, Lcom/xingbook/ecloud/e/a;->a(Ljava/lang/String;I)V

    goto :goto_0
.end method

.method public a(Ljava/util/ArrayList;Z)V
    .locals 1

    iput-boolean p2, p0, Lcom/xingbook/ecloud/a/a;->d:Z

    iget-object v0, p0, Lcom/xingbook/ecloud/a/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ecloud/a/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    :cond_0
    return-void
.end method

.method public a_()V
    .locals 0

    return-void
.end method

.method public a_(Ljava/lang/String;)V
    .locals 0

    return-void
.end method

.method public b(Ljava/lang/String;I)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ecloud/a/a;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ecloud/e/a;

    invoke-virtual {v0, p1, p2}, Lcom/xingbook/ecloud/e/a;->c(Ljava/lang/String;I)V

    goto :goto_0
.end method

.method public b_(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ecloud/a/a;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ecloud/e/a;

    invoke-virtual {v0, p1}, Lcom/xingbook/ecloud/e/a;->a(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public c(Ljava/lang/String;I)V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/ecloud/a/a;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ecloud/e/a;

    const/4 v2, 0x6

    invoke-virtual {v0, p1, v2}, Lcom/xingbook/ecloud/e/a;->a(Ljava/lang/String;I)V

    goto :goto_0
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/a/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/a/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge p1, v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ecloud/a/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    invoke-virtual {p0, p1}, Lcom/xingbook/ecloud/a/a;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ecloud/b/b;

    if-eqz v0, :cond_1

    if-eqz p2, :cond_0

    instance-of v1, p2, Lcom/xingbook/ecloud/e/a;

    if-eqz v1, :cond_0

    move-object v1, p2

    check-cast v1, Lcom/xingbook/ecloud/e/a;

    iget-boolean v2, p0, Lcom/xingbook/ecloud/a/a;->d:Z

    invoke-virtual {v1, v0, v2}, Lcom/xingbook/ecloud/e/a;->a(Lcom/xingbook/ecloud/b/b;Z)V

    :goto_0
    return-object p2

    :cond_0
    new-instance v2, Lcom/xingbook/ecloud/e/a;

    iget-object v1, p0, Lcom/xingbook/ecloud/a/a;->a:Landroid/content/Context;

    iget v3, p0, Lcom/xingbook/ecloud/a/a;->b:F

    iget-object v4, p0, Lcom/xingbook/ecloud/a/a;->e:Lcom/xingbook/ecloud/e/s;

    invoke-direct {v2, v1, v3, v4}, Lcom/xingbook/ecloud/e/a;-><init>(Landroid/content/Context;FLcom/xingbook/ecloud/e/s;)V

    new-instance v3, Landroid/widget/AbsListView$LayoutParams;

    move-object v1, v2

    check-cast v1, Lcom/xingbook/ecloud/e/a;

    invoke-virtual {v1}, Lcom/xingbook/ecloud/e/a;->getRealWidth()I

    move-result v4

    move-object v1, v2

    check-cast v1, Lcom/xingbook/ecloud/e/a;

    invoke-virtual {v1}, Lcom/xingbook/ecloud/e/a;->getRealHeight()I

    move-result v1

    invoke-direct {v3, v4, v1}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v3, p0, Lcom/xingbook/ecloud/a/a;->f:Ljava/util/ArrayList;

    move-object v1, v2

    check-cast v1, Lcom/xingbook/ecloud/e/a;

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    move-object v1, v2

    check-cast v1, Lcom/xingbook/ecloud/e/a;

    iget-boolean v3, p0, Lcom/xingbook/ecloud/a/a;->d:Z

    invoke-virtual {v1, v0, v3}, Lcom/xingbook/ecloud/e/a;->a(Lcom/xingbook/ecloud/b/b;Z)V

    move-object p2, v2

    goto :goto_0

    :cond_1
    const/4 p2, 0x0

    goto :goto_0
.end method
